import { request } from '@/utils/request'

// 获取当前ip地址信息
export const getIpInfo = async () => {
  const data = await request.get('/singnip')
  return data
}

// 获取留言
export const getWalls = async (data) => {
  const res = await request.post('/walls/getWalls', data)
  return res
}

// 添加留言
export const addWall = async (data) => {
  const res = await request.post('/walls/insertWalls', data)
  return res
}

// 删除留言
export const deleteWall = async (data) => {
  const res = await request.post('/walls/delWalls', data)
  return res
}

// 修改留言
export const updateWall = async (data) => {
  const res = await request.post('/walls/upDataWalls', data)
  return res
}